package com.ruoyi.system.service.impl;

import java.util.List;
import java.util.Arrays;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.GrainsituationWarehouseTempositionMapper;
import com.ruoyi.system.domain.GrainsituationWarehouseTemposition;
import com.ruoyi.system.service.IGrainsituationWarehouseTempositionService;

/**
 * 仓房点位分布图Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-03
 */
@Service
public class GrainsituationWarehouseTempositionServiceImpl extends ServiceImpl<GrainsituationWarehouseTempositionMapper,GrainsituationWarehouseTemposition> implements IGrainsituationWarehouseTempositionService
{
    @Autowired
    private GrainsituationWarehouseTempositionMapper grainsituationWarehouseTempositionMapper;

    /**
     * 查询仓房点位分布图
     * 
     * @param id 仓房点位分布图主键
     * @return 仓房点位分布图
     */
    @Override
    public GrainsituationWarehouseTemposition selectGrainsituationWarehouseTempositionById(Long id)
    {
        return this.getById(id);
    }

    /**
     * 查询仓房点位分布图列表
     * 
     * @param grainsituationWarehouseTemposition 仓房点位分布图
     * @return 仓房点位分布图
     */
    @Override
    public List<GrainsituationWarehouseTemposition> selectGrainsituationWarehouseTempositionList(GrainsituationWarehouseTemposition grainsituationWarehouseTemposition)
    {
        return grainsituationWarehouseTempositionMapper.selectGrainsituationWarehouseTempositionList(grainsituationWarehouseTemposition);
    }

    /**
     * 新增仓房点位分布图
     * 
     * @param grainsituationWarehouseTemposition 仓房点位分布图
     * @return 结果
     */
    @Override
    public boolean insertGrainsituationWarehouseTemposition(GrainsituationWarehouseTemposition grainsituationWarehouseTemposition)
    {
        return this.save(grainsituationWarehouseTemposition);
    }

    /**
     * 修改仓房点位分布图
     * 
     * @param grainsituationWarehouseTemposition 仓房点位分布图
     * @return 结果
     */
    @Override
    public boolean updateGrainsituationWarehouseTemposition(GrainsituationWarehouseTemposition grainsituationWarehouseTemposition)
    {
        return this.updateById(grainsituationWarehouseTemposition);
    }

    /**
     * 批量删除仓房点位分布图
     * 
     * @param ids 需要删除的仓房点位分布图主键
     * @return 结果
     */
    @Override
    public boolean deleteGrainsituationWarehouseTempositionByIds(Long[] ids)
    {
        return super.removeByIds(Arrays.asList(ids));
    }

    /**
     * 删除仓房点位分布图信息
     * 
     * @param id 仓房点位分布图主键
     * @return 结果
     */
    @Override
    public boolean deleteGrainsituationWarehouseTempositionById(Long id)
    {
        return this.removeById(id);
    }
}
